package com.zkjl.protect_business.repository;


import com.zkjl.protect_business.entity.User;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.Collection;
import java.util.List;

public interface UserRepository extends ElasticsearchRepository<User,String> {

    User findByUserNameAndPassWord(String userName, String password);

    User findByUserName(String userName);

    User findByOrgId(String orgId);

    List<User> findAllByOrgId(String orgId);

    List<User> findAllByOrgIdIn(List<String> orgId);

}
